package com.ssmsq.multidatabase.repository;

import com.ssmsq.multidatabase.entity.AlbbSms;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author sss
 */
@Repository
public interface AlbbSmsRepository extends PagingAndSortingRepository<AlbbSms, String> {

    List<AlbbSms> findByPhoneNumber(String phoneNumber);

    List<AlbbSms> findByPhoneNumberAndModeType(String phoneNumber, String mode);

}
